import Bullet from "../../bullet";
import BulletArea from "../../bullet_area";


const { ccclass, property } = cc._decorator;

@ccclass
export default class FloatArea extends BulletArea {
    onBulletEnterArea(bullet: Bullet) {
        if (cc.isValid(bullet)) {
            bullet.float += this.float;
        }
    }
    onBulletExitArea(bullet: Bullet) {
        if (cc.isValid(bullet)) {
            bullet.float -= this.float;
        }
    }
};